from app.models.steel_defect_models import SegModel
import inspect

# 打印 __init__ 方法定义
print("SegModel __init__ method definition:")
print(inspect.getsource(SegModel.__init__))

# 打印 forward 方法定义
print("\nSegModel forward method definition:")
print(inspect.getsource(SegModel.forward))